<div class="modal-header" ng-click="isEventStop()">
    {{multiLan?(modalName|translate):modalName}}
    <i class="yb-icon ico-close" ng-click="cancel()"></i>
</div>

<div class="modal-body" ng-click="isEventStop()">
    <div class="row">
        <div class="input-bar col-xs-5 wrapper-none pull-right m-b-sm" ng-if="currentType.keyWords&&currentType.keyWords.length==1">
            <div class="input-group clearfix">
                <input type="text" class="form-control" ng-model="condition[currentType.keyWords[0].field]" placeholder="{{multiLan?(currentType.keyWords[0].label|translate):currentType.keyWords[0].label}}">
                <span class="input-group-addon cursor-pointer" ng-click="search(1)">{{multiLan?('搜索'|translate):'搜索'}}</span>
            </div>
        </div>

        <div class="search-bar wrapper-none col-xs-12 m-b-sm" ng-if="currentType.keyWords&&currentType.keyWords.length==2">
            <div class="normal-search clearfix pull-right">
                <label class="control-label">{{multiLan?(currentType.keyWords[0].label|translate):currentType.keyWords[0].label}}：</label>
                <input type="text" class="form-control m-r-sm" ng-model="condition[currentType.keyWords[0].field]">
                <label class="control-label">{{multiLan?(currentType.keyWords[1].label|translate):currentType.keyWords[1].label}}：</label>
                <input type="text" class="form-control m-r-sm" ng-model="condition[currentType.keyWords[1].field]">
                <span class="btn btn-primary" ng-click="search(1)">{{multiLan?('搜索'|translate):'搜索'}}</span> 
            </div>
        </div>
        <table class="col-xs-12 table table-fixed">
            <thead>
            <tr>
                <th width="40" class="text-center border-l-none th-check" ng-if="!currentType.isOnlyShow && currentType.isMultiSelect">
                    <div yb-check-box yb-checked="markInfo.allCheckedData"
                        yb-click="selectAll(dataList, 'Data')"></div>
                </th>                
                <th ng-repeat="item in currentType.fields track by $index" width="{{item.width}}">
                    {{multiLan?(item.name|translate):item.name}}
                </th>
                <th width="66" ng-if='!currentType.isOnlyShow && !currentType.isMultiSelect'>{{multiLan?('操作'|translate):'操作'}}</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-if="dataList.length == 0">
                <td colspan="{{currentType.fields.length + 1}}" class="text-center">{{multiLan?('暂时没有数据'|translate):'暂时没有数据'}}</td>
            </tr>
            <tr ng-repeat="item in dataList track by $index">
                <td width="40" class="text-center border-l-none" ng-if="!currentType.isOnlyShow && currentType.isMultiSelect">
                    <div yb-check-box yb-checked="item.isChecked"
                        yb-click="selectSingle(item, dataList, 'Data')"></div>
                </td>                
                <td class="spill-dots" title="{{item[f.dataField]}}" ng-repeat="f in currentType.fields track by $index">{{item[f.dataField]}}</td>
                <td ng-if='!currentType.isOnlyShow && !currentType.isMultiSelect'>
                    <button
                        class="btn btn-operate"
                        ng-disabled="currentType.selectedId && currentType.selectedId === item[currentType.selectedKey] || currentType.selectedIds && currentType.selectedIds.includes(item[currentType.selectedKey])"
                        ng-click="selectItem(item)">{{multiLan?('选择'|translate):'选择'}}</button>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>

<div class="modal-footer border-t-none" ng-click="isEventStop()">
    <div yb-page-info ng-model="pageInfo" yb-refresh="search()"></div>
</div>

<div class="modal-footer p-x-0" ng-if="!currentType.isOnlyShow && currentType.isMultiSelect">
    <button class="btn btn-default" ng-click="cancel()">取消</button>
    <button class="btn btn-primary m-r-md" ng-click="multiSelectConfirm()">确定</button>
</div>